import request from '@/utils/request'
// 更新权限接口
export const updatePermissionRequest = data => request.put(`/sys/permission/${data.id}`, data)
// 根据id获取权限接口
export const getPermissionByIdRequest = id => request.get(`/sys/permission/${id}`)
// 删除权限请求接口
export const deletePermissionRequest = id => request.delete(`/sys/permission/${id}`)
// 增加权限接口
export const addPermissionRequest = data => request.post(`/sys/permission`, data)
// 获取所有用户权限接口
export const getAllPermissionRequest = () => request.get(`/sys/permission`)
